<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      5.13.&nbsp;Check-0.9.9
    </title>
    <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="lfs" id="lfs-7.3">
    <div class="navheader">
      <h4>
        Linux From Scratch - Version 7.3
      </h4>
      <h3>
        Chapter&nbsp;5.&nbsp;Constructing a Temporary System
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="dejagnu.html" title="DejaGNU-1.5">Prev</a>
          <p>
            DejaGNU-1.5
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="ncurses.html" title="Ncurses-5.9">Next</a>
          <p>
            Ncurses-5.9
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="chapter05.html" title=
          "Chapter&nbsp;5.&nbsp;Constructing a Temporary System">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Linux From Scratch - Version 7.3">Home</a>
        </li>
      </ul>
    </div>
    <div class="wrap" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="ch-tools-check" name="ch-tools-check"></a>5.13. Check-0.9.9
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <p>
          Check is a unit testing framework for C.
        </p>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Approximate build time:</strong>
              <span class="segbody">0.1 SBU</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Required disk space:</strong>
              <span class="segbody">6.9 MB</span>
            </div>
          </div>
        </div>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          5.13.1. Installation of Check
        </h2>
        <p>
          Prepare Check for compilation:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/tools</kbd>
</pre>
        <p>
          Build the package:
        </p>
        <pre class="userinput">
<kbd class="command">make</kbd>
</pre>
        <p>
          Compilation is now complete. As discussed earlier, running the test
          suite is not mandatory for the temporary tools here in this
          chapter. To run the Check test suite anyway, issue the following
          command:
        </p>
        <pre class="userinput">
<kbd class="command">make check</kbd>
</pre>
        <p>
          Note that the Check test suite may take a relatively long (up to 4
          SBU) time.
        </p>
        <p>
          Install the package:
        </p>
        <pre class="userinput">
<kbd class="command">make install</kbd>
</pre>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          <a id="contents-check" name="contents-check"></a>5.13.2. Contents
          of Check
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed program:</strong>
              <span class="segbody">checkmk</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed library:</strong>
              <span class="segbody">libcheck.{a,so}</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0">
            <col align="left" valign="top" />
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="checkmk" name="checkmk"></a><span class=
                    "term"><span class=
                    "command"><strong>checkmk</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Awk script for generating C unit tests for use with the
                    Check unit testing framework
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libcheck" name="libcheck"></a><span class=
                    "term"><code class=
                    "filename">libcheck.{a,so}</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    Contains functions that allow Check to be called from a
                    test program
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="dejagnu.html" title="DejaGNU-1.5">Prev</a>
          <p>
            DejaGNU-1.5
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="ncurses.html" title="Ncurses-5.9">Next</a>
          <p>
            Ncurses-5.9
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="chapter05.html" title=
          "Chapter&nbsp;5.&nbsp;Constructing a Temporary System">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Linux From Scratch - Version 7.3">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
